'''
写日志的话，一般要再开一个项目，而不是放到views中
'''
from flask import Blueprint, request, jsonify

blue = Blueprint('loggerBlue',__name__)

@blue.route('/log',methods=['POST'])
def upload_log():
    print(request.form)
    return jsonify({
        'msg':'ok'
    })